#ifndef GAMECONTROLLER_H
#define GAMECONTROLLER_H

#include "base_include.h"
#include "Chassis.h"

//游戏手柄类
class GameController {
  public:
  //构造函数
  GameController(){
    
  }
  //析构函数
  ~GameController(){
    
  }
  private:
  //手柄对象
  vex::controller Controller = vex::controller(vex::controllerType::primary);
  //底盘对象
  Chassis chassis = Chassis();

  private:
  //左摇杆x轴坐标，对应axis4
  int xLeftJS = 0;
  //左摇杆y轴坐标，对应axis3
  int yLeftJS = 0;
  //右摇杆x轴坐标，对应axis1
  int xRightJS = 0;
  //右摇杆y轴坐标，对应axis2
  int yRightJS = 0;

  public:
  //左摇杆监听器，在主循环中执行
  void checkLeftJoyStick();

  //右摇杆监听器，在主循环中执行
  void checkRightJoyStick();

};

#endif 